package com.zyh;

import com.zyh.entity.Pet;
import com.zyh.service.PetService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.Date;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class)
public class test {
    @Autowired
    PetService service;
    @Test
    public void test(){
        service.insert(new Pet(null,"张三","的",1,new Date(),"的"));
    }
}
